
# from crud.crud import queryUserByUserId
# 创建app实例
from typing import List
from pydantic import BaseModel
from fastapi import Request
class Login(BaseModel):
    username:str
    password:str
    user:List[int]


async def queryUserByUserId(req:Request):
    value = await req.app.state.cache.get("today")
    return {"msg":"test_redis","data":[value]}

async def login(req:Request):
    print(req.app.state.cache)
    # value = await req.app.state.cache.get("today")
    # return success(msg="test_redis",data=[value])
    return {"id":req.app.state.cache}